-- GENERATED SPELL FOR [Incandescent Fel Spark] --


function spell0_22323(pUnit, Event) --@Fel Fireball,n/a--
pUnit:FullCastSpellOnTarget(36247,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22323', 3000, 1)
end

function spell1_22323(pUnit, Event) --@Flames of Chaos,Self--
pUnit:FullCastSpellOnTarget(39055,pUnit)
pUnit:RegisterEvent('Sorts_22323', 6000, 1)
end

function Sorts_22323(pUnit, Event)
local choix_sorts_22323 = math.random(0, 1)
if choix_sorts_22323 == 0 then
pUnit:RegisterEvent('spell0_22323', 1, 1)
end
if choix_sorts_22323 == 1 then
pUnit:RegisterEvent('spell1_22323', 1, 1)
end
end

function mob22323_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22323', math.random(1500, 3000), 1)
end

function mob22323_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22323_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22323_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22323, 1, 'mob22323_Action')
RegisterUnitEvent(22323, 2, 'mob22323_Leave')
RegisterUnitEvent(22323, 3, 'mob22323_Kill')
RegisterUnitEvent(22323, 4, 'mob22323_Die')
